//
//  PropertyExpensesViewController.swift
//  SmartHousekeeper
//
//  Created by 张磊 on 2020/2/21.
//  Copyright © 2020 LS. All rights reserved.
//

import UIKit
//物业费
class PropertyExpensesViewController: ContributionBaseViewController {
    let propertyExpensesListView = PropertyExpensesListView()

    override func viewDidLoad() {
        super.viewDidLoad()

        self.baseView.company.isHidden = true
        self.baseView.addSubview(propertyExpensesListView)
        propertyExpensesListView.snp.makeConstraints { (make) in
            make.top.equalTo(self.baseView.rightBtn.snp.bottom);
            make.left.equalToSuperview();
            make.right.equalToSuperview();
            make.bottom.equalTo(self.baseView);
      }
        propertyExpensesListView.switchBlock = { isOn in
            
            print("自动扣费: \(isOn)")
        }
        propertyExpensesListView.payBlock = {
            print("立即支付")
            let vc = PaymentViewController()
            self.navigationController?.pushViewController(vc, animated: true)
            
        }
    }
    

   

}
